package com.kris.service.impl;

import com.kris.dao.ConstellationDao;
import com.kris.dao.UserDao;
import com.kris.model.ConstellationDomain;
import com.kris.service.ConstellationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ConstellationServiceImpl implements ConstellationService {

    @Autowired
    private ConstellationDao constellationDao;//这里会报错，但是并不会影响

    @Override
    public ConstellationDomain getConstellation(Date day) {
        ConstellationDomain result = constellationDao.selectConstellationByDay(day);
        return result;
    }
}
